//
//  WmcQRCodeVerifyWebVC.swift
//  YPWatermarkCamera
//
//  Created by Json on 2023/7/25.
//

import UIKit


class WmcQRCodeVerifyWebVC: WmcWebVC {
    
    class override var navPaths: [WmcNavigatorManager.Path] {
        return [.qrcodeVerify]
    }
    
    /// 二维码验证页面URL
    private static var qrcodeVerifyURL: String {
        let baseURL = YPWmcManager.shared.environmentType.baseWebURL
        let url = "\(baseURL)/wartermark-verify/introduce.html"
        return url
    }
    
    // MARK: Life cycle
    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
   
    override func handleJSMessage(_ message: WmcWebVC.JSMessage, params: [String : Any]) {
        switch message {
        case .sign_contact_us: // 点击联系我们
            WmcShareManager.followWechat()
        default: break
        }
    }
    
    
    override class func makeNavgationVC(parms: WmcNavigatorManager.Parms) -> UIViewController {
        let vm = WmcWebVM()
        vm.title = "二维码"
        // "http://192.168.28.28:3000/introduce"
        // "http://192.168.29.59:8080/index.html"
        vm.urlString = qrcodeVerifyURL
        let vc = WmcQRCodeVerifyWebVC(vm)
        return vc
    }


}
